export const regExp = {
  figure: /^\+?[1-9][0-9]*$/, //大于0的正整数

  positiveInteger: /^\+?(0|[1-9])*$/, //大于等于0的正整数

  phone: /^1[3-9]\d{9}$/,

  len6: /^[\s\S]{0,6}$/,

  len8: /^[\s\S]{0,8}$/,

  len15: /^[\s\S]{1,15}$/,

  len14: /^[\s\S]{1,14}$/,

  len40: /^[\s\S]{1,40}$/,

  len45: /^[\s\S]{1,45}$/,

  len5: /^[\s\S]{1,5}$/,

  len30: /^[\s\S]{1,30}$/,

  len50: /^[\s\S]{0,50}$/,

  len020: /^[\s\S]{1,20}$/,

  len20: /^[\s\S]{5,20}$/,

  email: /^([0-9A-Za-z\-_\.]+)@([0-9a-z]+\.[a-z]{2,3}(\.[a-z]{2})?)$/g,

  url: /^(http:\/\/|^https:\/\/|^\/\/)((\w|=|\?|\.|\/|&|-)+)/,

  moneyFormat: /^((0|[1-9]+)|([0-9]+\.[0-9]{1,2}))$/, //非负小数

  min0: /^[+]?[\d]+(([\.]{1}[\d]+)|([\d]*))$/,

  min0Float: /^(0|0\.[1-9]{1,2}|0\.0[1-9]{1}|0\.[1-9]{1}0{0,1}|[1-9]{0,8}|[1-9]\d{0,8}(\.+\d{1,2})?)$/, //大于等于0的任意整数或小数，小数位不超过2个

  min1: /^\+?[1-9][0-9]*$/,

  max2: /^(0|[1-9][0-9]*)+(.[0-9]{1,2})?$/, //非零开头的最多带两位小数的数字

  maxDecimals2: /^([0-9]*)+(.[0-9]{1,2})?$/, //非零开头的最多带两位小数的数字

  maxdigital2: /^([1-9][0-9]{0,1})$/, //最多2位正整数

  maxdigital1: /^[0-9]$/, //最多1位正整数

  maxdigital3: /^([1-9]|[1-9][0-9]|[1-9][0-9]{2})$/, //最多3位正整数

  maxdigital6: /^([1-9]|[1-9][0-9]|[1-9][0-9]|[1-9][0-9]|[1-9][0-9]|[1-9][0-9]{0,5})$/, // 最多6位正整数

  integer: /^[0-9]*[1-9][0-9]*$/,

  zeroNoZero: /^(0|[1-9][0-9]*)$/, //零和非零开头的数字

  integers: /^[0-9]*[0-9][0-9]*$/,

  password: /^(?=.*?[A-Za-z]+)(?=.*?[0-9]+)(?=.*?[A-Za-z]).{6,16}$/,

  strongPassword: /^(?![a-zA-Z]+$)(?![A-Z0-9]+$)(?![A-Z\W_]+$)(?![a-z0-9]+$)(?![a-z\W_]+$)(?![0-9\W_]+$)[a-zA-Z0-9\W_]{6,16}$/, //要求大小写字母数字特殊符号四选三

  // strongPassword: /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[$@$!%*?&])[A-Za-z\d$@$!%*?&]{8,20}/,  //至少1个大写字母，1个小写字母，1个数字和1个特殊字符

  approvalStatus: /(2|3)/,

  // pullParams: /^([1-9]*)$/,
  pullParams: /^[1-9]\d*$/,

  singular: /^(\d|10)?$/,

  identity: /^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/,

  numOrWordLimit: /^[A-Za-z0-9]{1,32}$/, // 英文或数字，3-32之间

  exist: /^./g, // 匹配是否有值 - '' []

  timeStr: /^((0\d{1})|([1-9]\d{0,})):[0-5]\d:[0-5]\d$/,
  numChar8: /(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{6,16}$/, //不少于8位的必须包括数字和字母
  specialChar: /^[^#%&*!@$^\/|:<>?\"]*$/,

  fourtext: /^[^。]([^。]*。?){0,3}[^。]*[^。]+$/, //包含3个句号（不判断结尾是否为句号）
  // 号码段或手机号
  telOrPhone: /((\d{11})|^((\d{7,8})|(\d{4}|\d{3})-(\d{7,8})|(\d{4}|\d{3})-(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1})|(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1}))$)/,

  numTwo: /(^\d?[1-9]{1}$)|(^[1-9]{1}\d?$)/,

  validateURL:
    /^(https?|ftp):\/\/([a-zA-Z0-9.-]+(:[a-zA-Z0-9.&%$-]+)*@)*((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]?)(\.(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+\.(com|edu|gov|int|mil|net|org|biz|arpa|info|name|pro|aero|coop|museum|[a-zA-Z]{2}))(:[0-9]+)*(\/($|[a-zA-Z0-9.,?'\\+&%$#=~_-]+))*$/ /* 合法uri*/,

  strLen20: /^[\s\S]{0,20}$/,

  len100: /^[\s\S]{0,100}$/,

  len120: /^[\s\S]{0,120}$/,

  len128: /^[\s\S]{0,128}$/,

  len200: /^[\s\S]{0,200}$/,

  alphanumer: /^[a-zA-Z0-9!@#$%^&*()_+{}\[\]:;<>,.?~\\|\s-]{0,20}$/, // 字母，数字和字符（不包含中文字符） 0-20之间

  alphanumeric: /^[a-zA-Z0-9]{0,20}$/, // 字母和数字 0-20之间

  numberAndSymbol: /^[\d\W]{1,20}$/ //数字和符号 0-20之间
};
